package com.zxl.yjb.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zxl.yjb.GlideApp;
import com.zxl.yjb.R;
import com.zxl.yjb.widget.SquareImage;

import java.util.List;

public class ImageAdapter extends BaseQuickAdapter<String,BaseViewHolder> {

    public ImageAdapter(int layoutResId, @Nullable List<String> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        GlideApp.with(mContext).load(item).placeholder(R.color.gray_line).into((ImageView) helper.getView(R.id.iv_image));
    }
}
